Integrand size = 30, antiderivative size = 94 \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=-\frac {c \tan (e+f x)}{f (a+a \sec (e+f x))^{3/2} \sqrt {c-c \sec (e+f x)}}+\frac {c \log (1+\cos (e+f x)) \tan (e+f x)}{a f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}} \]
[Out]
Time = 0.24 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {3992, 3996, 31} \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=\frac {c \tan (e+f x) \log (\cos (e+f x)+1)}{a f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}-\frac {c \tan (e+f x)}{f (a \sec (e+f x)+a)^{3/2} \sqrt {c-c \sec (e+f x)}} \]
[In]
[Out]
Rule 31
Rule 3992
Rule 3996
Rubi steps \begin{align*} \text {integral}& = -\frac {c \tan (e+f x)}{f (a+a \sec (e+f x))^{3/2} \sqrt {c-c \sec (e+f x)}}+\frac {\int \frac {\sqrt {c-c \sec (e+f x)}}{\sqrt {a+a \sec (e+f x)}} \, dx}{a} \\ & = -\frac {c \tan (e+f x)}{f (a+a \sec (e+f x))^{3/2} \sqrt {c-c \sec (e+f x)}}+\frac {(c \tan (e+f x)) \text {Subst}\left (\int \frac {1}{a+a x} \, dx,x,\cos (e+f x)\right )}{f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}} \\ & = -\frac {c \tan (e+f x)}{f (a+a \sec (e+f x))^{3/2} \sqrt {c-c \sec (e+f x)}}+\frac {c \log (1+\cos (e+f x)) \tan (e+f x)}{a f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}} \\ \end{align*}
Time = 0.26 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.80 \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=-\frac {c \left (-\log (\cos (e+f x))-\log (1+\sec (e+f x))+\frac {1}{1+\sec (e+f x)}\right ) \tan (e+f x)}{a f \sqrt {a (1+\sec (e+f x))} \sqrt {c-c \sec (e+f x)}} \]
[In]
[Out]
Time = 2.34 (sec) , antiderivative size = 94, normalized size of antiderivative = 1.00
method | result | size |
default | \(\frac {\left (2 \cos \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+2 \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+\cos \left (f x +e \right )-1\right ) \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \sqrt {-c \left (\sec \left (f x +e \right )-1\right )}\, \cot \left (f x +e \right )}{2 f \,a^{2} \left (\cos \left (f x +e \right )+1\right )}\) | \(94\) |
risch | \(-\frac {\sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{1+{\mathrm e}^{2 i \left (f x +e \right )}}}\, \left (2 i {\mathrm e}^{2 i \left (f x +e \right )} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )+{\mathrm e}^{2 i \left (f x +e \right )} f x +4 i {\mathrm e}^{i \left (f x +e \right )} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )+2 \,{\mathrm e}^{2 i \left (f x +e \right )} e +2 \,{\mathrm e}^{i \left (f x +e \right )} f x +2 i \ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )+2 i {\mathrm e}^{i \left (f x +e \right )}+4 \,{\mathrm e}^{i \left (f x +e \right )} e +f x +2 e \right )}{a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{1+{\mathrm e}^{2 i \left (f x +e \right )}}}\, \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) f}\) | \(226\) |
[In]
[Out]
\[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=\int { \frac {\sqrt {-c \sec \left (f x + e\right ) + c}}{{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=\int \frac {\sqrt {- c \left (\sec {\left (e + f x \right )} - 1\right )}}{\left (a \left (\sec {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 395 vs. \(2 (86) = 172\).
Time = 0.37 (sec) , antiderivative size = 395, normalized size of antiderivative = 4.20 \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=-\frac {{\left ({\left (f x + e\right )} \cos \left (2 \, f x + 2 \, e\right )^{2} + 4 \, {\left (f x + e\right )} \cos \left (f x + e\right )^{2} + {\left (f x + e\right )} \sin \left (2 \, f x + 2 \, e\right )^{2} + 4 \, {\left (f x + e\right )} \sin \left (f x + e\right )^{2} + f x - 2 \, {\left (2 \, {\left (2 \, \cos \left (f x + e\right ) + 1\right )} \cos \left (2 \, f x + 2 \, e\right ) + \cos \left (2 \, f x + 2 \, e\right )^{2} + 4 \, \cos \left (f x + e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 4 \, \sin \left (2 \, f x + 2 \, e\right ) \sin \left (f x + e\right ) + 4 \, \sin \left (f x + e\right )^{2} + 4 \, \cos \left (f x + e\right ) + 1\right )} \arctan \left (\sin \left (f x + e\right ), \cos \left (f x + e\right ) + 1\right ) + 2 \, {\left (f x + 2 \, {\left (f x + e\right )} \cos \left (f x + e\right ) + e - \sin \left (f x + e\right )\right )} \cos \left (2 \, f x + 2 \, e\right ) + 4 \, {\left (f x + e\right )} \cos \left (f x + e\right ) + 2 \, {\left (2 \, {\left (f x + e\right )} \sin \left (f x + e\right ) + \cos \left (f x + e\right )\right )} \sin \left (2 \, f x + 2 \, e\right ) + e - 2 \, \sin \left (f x + e\right )\right )} \sqrt {a} \sqrt {c}}{{\left (a^{2} \cos \left (2 \, f x + 2 \, e\right )^{2} + 4 \, a^{2} \cos \left (f x + e\right )^{2} + a^{2} \sin \left (2 \, f x + 2 \, e\right )^{2} + 4 \, a^{2} \sin \left (2 \, f x + 2 \, e\right ) \sin \left (f x + e\right ) + 4 \, a^{2} \sin \left (f x + e\right )^{2} + 4 \, a^{2} \cos \left (f x + e\right ) + a^{2} + 2 \, {\left (2 \, a^{2} \cos \left (f x + e\right ) + a^{2}\right )} \cos \left (2 \, f x + 2 \, e\right )\right )} f} \]
[In]
[Out]
none
Time = 1.25 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.88 \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=-\frac {\sqrt {2} {\left (\frac {2 \, \sqrt {2} \sqrt {-a c} c \log \left ({\left | -2 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 2 \, c \right |}\right )}{a^{2} {\left | c \right |}} - \frac {\sqrt {2} {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} \sqrt {-a c}}{a^{2} {\left | c \right |}}\right )}}{4 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {c-c \sec (e+f x)}}{(a+a \sec (e+f x))^{3/2}} \, dx=\int \frac {\sqrt {c-\frac {c}{\cos \left (e+f\,x\right )}}}{{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]